package cn.iocoder.yudao.module.system.controller.admin.cameraevent.vo;

import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import io.swagger.annotations.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
* 告警异常列表 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class CameraEventBaseVO {

    @ApiModelProperty(value = "异常类型", required = true)
    @NotNull(message = "异常类型不能为空")
    private String event;

    @ApiModelProperty(value = "异常状态", required = true, example = "2")
    @NotNull(message = "异常状态不能为空")
    private Byte status;

    @ApiModelProperty(value = "异常开始", required = true)
    @NotNull(message = "异常开始不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime eventStart;

    @ApiModelProperty(value = "异常结束", required = true)
    @NotNull(message = "异常结束不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime eventEnd;

    @ApiModelProperty(value = "触发时间", required = true)
    @NotNull(message = "触发时间不能为空")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime currentTime;

    @ApiModelProperty(value = "报警输入通道号", required = true)
    @NotNull(message = "报警输入通道号不能为空")
    private String networkAlarmIndex;

    @ApiModelProperty(value = "设备ID", required = true, example = "19696")
    @NotNull(message = "设备ID不能为空")
    private Long cameraId;

}
